package com.example.department.Entity;

import java.sql.Date;

//志愿者活动表
public class Activity {
    private int aid;
    private String activityname; //活动名称
    private String activitypic; //活动图片
    private Date starttime; //开始时间
    private Date endtime; //结束时间
    private int needpeople; //需要人数
    private int applypeople; //当前报名人数
    private String activityaddress; //活动地址
    private String phone; //电话号码
    private String activitycontent; //活动内容
    private int activitytime; //活动时长
    private int volunteer; //志愿者分每小时多少
    private int username; //发布组织的名称
    private User user;
    public Activity() {
    }

    public Activity(int aid, String activityname, String activitypic, Date starttime, Date endtime, int needpeople, int applypeople, String activityaddress, String phone, String activitycontent, int activitytime, int volunteer, int username,User user) {
        this.aid = aid;
        this.activityname = activityname;
        this.activitypic = activitypic;
        this.starttime = starttime;
        this.endtime = endtime;
        this.needpeople = needpeople;
        this.applypeople = applypeople;
        this.activityaddress = activityaddress;
        this.phone = phone;
        this.activitycontent = activitycontent;
        this.activitytime = activitytime;
        this.volunteer = volunteer;
        this.username = username;
        this.user = user;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public int getAid() {
        return aid;
    }

    public void setAid(int aid) {
        this.aid = aid;
    }

    public String getActivityname() {
        return activityname;
    }

    public void setActivityname(String activityname) {
        this.activityname = activityname;
    }

    public String getActivitypic() {
        return activitypic;
    }

    public void setActivitypic(String activitypic) {
        this.activitypic = activitypic;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public int getNeedpeople() {
        return needpeople;
    }

    public void setNeedpeople(int needpeople) {
        this.needpeople = needpeople;
    }

    public int getApplypeople() {
        return applypeople;
    }

    public void setApplypeople(int applypeople) {
        this.applypeople = applypeople;
    }

    public String getActivityaddress() {
        return activityaddress;
    }

    public void setActivityaddress(String activityaddress) {
        this.activityaddress = activityaddress;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getActivitycontent() {
        return activitycontent;
    }

    public void setActivitycontent(String activitycontent) {
        this.activitycontent = activitycontent;
    }

    public int getActivitytime() {
        return activitytime;
    }

    public void setActivitytime(int activitytime) {
        this.activitytime = activitytime;
    }

    public int getVolunteer() {
        return volunteer;
    }

    public void setVolunteer(int volunteer) {
        this.volunteer = volunteer;
    }

    public int getUsername() {
        return username;
    }

    public void setUsername(int username) {
        this.username = username;
    }
}
